<?php

class Value_Boolean
    extends Value {

    public function set(
        $mValue = null
        ) {

        return parent::set(!(empty($mValue) || $mValue === "false"));

    }

	public function isEmpty() {

    	return empty($this->mValue);

	}

    public function isEquals(
        $mValue
        ) {

		return $this->mValue === (!(empty($mValue) || $mValue === "false"));

    }

}

?>